
#include "OrthographicCamera.h"

namespace soft_renderer
{
	OrthographicCamera::OrthographicCamera(double left, double right, double bottom, double top, double near, double far)
		: left(left), right(right), bottom(bottom), top(top), near(near), far(far), Camera()
	{
		updateProjectionMatrix();
	}

	void OrthographicCamera::updateProjectionMatrix()
	{
		_projectionMatrix.orthographic(left, right, bottom, top, near, far);
	}
}

